<%--
  Created by IntelliJ IDEA.
  com.example.demo.bean.User: CXYZF
  Date: 2024/10/9
  Time: 9:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
jjj
<html>
<head>
    <title>PersonJSP</title>
</head>
<body>
<jsp:useBean id="person" class="com.example.demo.bean.Person" scope="page"></jsp:useBean>
<div>
    <ul>
        <li>
            姓名：
            <jsp:getProperty name="person" property="name"/>
        </li>
        <li>
            性别：
            <jsp:getProperty name="person" property="sex"/>
        </li>
        <li>
            年龄：
            <jsp:getProperty name="person" property="age"/>
        </li>
        <li>
            已婚：
            <jsp:getProperty name="person" property="person"/>
        </li>
    </ul>
</div>
</body>
</html>
